home *** CD-ROM | disk | FTP | other *** search
- on checkChest
- global IconCount
- set i to the clickOn
- if the castNum of sprite i = 514 then
- if sprite i intersects 7 then
- set the castNum of sprite i to 600
- set the locV of sprite i to 600
- updateStage()
- set IconCount to IconCount - 1
- go("CHEST OPEN")
- end if
- else
- if the castNum of sprite i = 512 then
- if sprite i intersects 7 then
- set the castNum of sprite i to 600
- set the locV of sprite i to 600
- updateStage()
- set IconCount to IconCount - 1
- go("CHEST OPEN")
- end if
- else
- if the castNum of sprite i = 510 then
- if sprite i intersects 7 then
- set the castNum of sprite i to 600
- set the locV of sprite i to 600
- updateStage()
- set IconCount to IconCount - 1
- go("CHEST OPEN")
- end if
- end if
- end if
- end if
- end
-